<% include top.ejs %>
<% include left.ejs %>
    <div class="set_up">
        	<a href="/setup/company"><img class="pt30 <%if(className=='company'){%>ml020<%}%>" src="../images/z1.png"></a>
       		<a href="/setup/bg"><img class=" mt10 <%if(className=='bg'){%>ml020<%}%>" src="../images/z2.png"></a>
        	<div class="setup_div pt0">
            	<%for(var i =0;i<list.length;i++){%>
                <img data="setupimg<%= list[i]['article_id']%>" src="<%= locals.baseUrl%><%= list[i]['pic']%>">
                <%}%>
                <div class="clearfix"></div>
            </div>
            <%- page%>
    </div>
    <!--弹窗开始-->
<div class="windows">
	<%for(var i =0;i<list.length;i++){%>
	<img id="setupimg<%= list[i]['article_id']%>" class="none" src="<%= locals.baseUrl%><%= list[i]['pic']%>">
    <%}%>
</div>
<div class="close none">
	<img class="close_img1" src="../images/colse.png">
    <img class="none close_img2" src="../images/close1.png">
</div>
<!--弹窗开始-->
<script>
var height=document.body.clientHeight ;
console.log(height)
$(".bg_000").css("height",height);
$(".close").click(function(){
	$(".bg_000").hide();
	$(".windows img").hide();
	$(".close").hide();
});
$(".setup_div img").click(function(){
	var  imgid = $(this).attr("data");
	$("#"+imgid).css("display","block");
	$(".bg_000").show();
	$(".windows").show();
	$(".close").show();
})
</script>
<% include footer.ejs %> 